<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <ul v-for="(item,index) in list" :key="item.id">
        <input type="checkbox" />
        {{item.name}}---{{item.id}}
      </ul>
    </div>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.12/vue.js"></script>
    <script>
      let vm = new Vue({
        el: "#app",
        data: {
          list: [
            { id: 0, name: "wxs", age: 12 },
            { id: 1, name: "wxs", age: 12 },
            { id: 2, name: "wxs", age: 12 },
            { id: 3, name: "wxs", age: 12 },
          ],
        },
      });
    </script>
  </body>
</html>
